<template>
    <div class="iframe">
        <div class="i-title">
            <h3>定时发短信</h3>
        </div>
        <div class="i-tip">
            <el-input type="text" placeholder="请输入验证码" v-model="code" style="margin-right: 5px;width:150px" />
            <el-button @click="sendCode">{{ sendBtnText }}</el-button>
        </div>
    </div>
</template>
<script setup>
import { ref } from "vue";
import useCountDown from "./useCountDown";
const code = ref("");
const { sendBtnText, sendCode } = useCountDown(60);
</script>
